@charset 'UTF-8';
@import './config/scss/function.scss', './config/scss/config.scss';
/* app css stylesheet */
body,
html {
    font-family: PingFangSC-Regular, "Microsoft YaHei UI", "Microsoft YaHei", "Arial", "Verdana", "Tahoma", sans-serif;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: PingFangSC-Regular, "Microsoft YaHei UI", "Microsoft YaHei", "Arial", "Verdana", "Tahoma", sans-serif;
    font-weight: 500;
}

body {
    font-family: PingFangSC-Regular, "Microsoft YaHei UI", "Microsoft YaHei", "Arial", "Verdana", "Tahoma", sans-serif;
    padding-top: 70px;
}

div,
h1,
h2,
h3,
h4,
h5,
p,
span {
    cursor: default;
}

body,
html {
    height: 100%;
}

.main {
    width: 100%;
    height: 100%;
    margin: auto;
    position: inherit;
    overflow-y: auto;

    .container {
        padding-bottom: 70px;
    }

    &.col-xs-12 {
        padding-left: 0;
        padding-right: 0;

        .yf-btn {
            font-size: 14px;
            padding: 2px 15px !important;
        }
    }
    @media screen and (max-width: 768px) {
        .xs-page {}
    }
}

.preview_picture {
    display: block;
    list-style-type: none;
    padding-left: 0px;
    .list {
        list-style-type: none;
        display: block;
        width: 100%;
        padding-left: 0px;
        li {
            @include preview_img;
            height: 90px;
        }
    }
}

.preview_img {
    li {
        @include preview_img;
    }
}

.orderlabel {
    position: absolute;
    top: 10px;
    left: -5px;
    color: #fff;
    padding: 5px 25px;
    background-color: $c1;

    &.install {
        background-color: #f4ce61;
    }

    &:before {
        content: ' ';
        width: 0;
        height: 0;
        position: absolute;
        top: 0;
        right: -1px;
        border-bottom: 14px solid transparent;
        border-top: 14px solid transparent;
        border-right: 13px solid rgba(255, 255, 255, 1);
    }
}

a,
a:active,
a:hover,
a:link,
a:visited {
    color: #000;
    text-decoration: none;
    cursor: pointer;

    &.dis {
        cursor: default !important;
    }
}

.pagination > li {
    a {
        color: $c2;
        margin: auto 2px;
        border-radius: 5px;
    }

    &.active {
        a,
        a:visited {
            background-color: $c1;
            border-color: $c1;
        }
    }
}

button,
button:active,
button:focus,
button:hover,
button:visited {
    border: none !important;
    outline: none !important;
}

.alert {
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    z-index: 999;
    text-align: center;

    a {
        color: $c1;
    }
}

.c1 {
    color: $c1 !important;
}

.empty-content {
    padding: 100px 50px;
    margin: 0 auto;
    text-align: center;
    font-size: 20px;
    color: $c4;
    min-height: 400px;
}

.yf-shadow {
    -webkit-box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
}

.yf-btn {
    background-color: $c1;
    border-color: $c1;
    color: #fff;
    border-radius: 15px;
    padding: 5px 25px !important;
    cursor: pointer !important;

    &.active,
    &:hover,
    &:visited {
        background-color: $c1 !important;
        color: #fff !important;
        border-color: $c1;
    }
}
// 分页按钮

.yf-pager {
    li {
        // &:first-child {
        //     margin-right: 20px;
        // }
        margin-right: 20px;

        &:last-child {
            margin-right: 0;
        }

        a {
            padding: 5px 25px;
        }
    }

    .page-search-li {
        input {
            width: 50px;
            border-radius: 10px;
            border: 1px solid $c2;
            padding: 5px 10px;
        }
    }
}

#ycf-alert {
    .modal-dialog {
        margin: 15% auto;
        width: 300px;

        .modal-body {
            text-align: center;
            padding: 20px;
            font-size: $f6;
            color: $c4;

            p {
                margin: 0;
                font-size: $f4;
            }
        }

        .modal-footer {
            padding: 0;

            &.row,
            .col {
                padding: 0 !important;
                margin: 0 !important;
            }

            .col {
                .btn {
                    width: 100%;
                    height: 45px;
                    line-height: 35px;
                    border-radius: 0;
                    display: inline-block;
                    background-color: #fff;
                    font-size: $f3;
                    border: 0;

                    &:last-child {
                        margin: 0;
                        border-left-width: 0;
                        border-bottom-right-radius: 4px;
                    }
                }

                &:first-child {
                    border-right: 1px solid $c5;

                    .btn {
                        &:first-child {
                            color: $c1;
                            border-bottom-left-radius: 4px;
                        }
                    }
                }
            }
        }
    }
}
// 格式化margin、padding

.margin-reset {
    margin-left: 0;
    margin-right: 0;
}

.padding-reset {
    padding-left: 0;
    padding-right: 0;
}

.panel-default {
    border-color: $c5 !important;
}

.pager.pager-sm {
    li {
        button {
            color: #fff;
            border-radius: 15px;
        }
    }
}

.error-container {
    border-bottom: 0 !important;
    color: red;
    // color: #c7e9df;
    font-size: $f1;
    // padding-top: 5px !important;
    margin-bottom: 10px !important;

    div {
        padding-left: 15px;
    }
}

.register {
    background-repeat: no-repeat no-repeat;
    background-size: auto;

    .register-head,
    .register-summary {
        text-align: right;
    }

    .register-head {
        margin-top: 80px;
        margin-bottom: 21px;
        color: #fff;
        font-size: 53px;
    }

    &.col-xs-12 {
        .register-head,
        .register-summary {
            padding-right: 15px;
        }

        .register-head {
            font-size: 30px;
        }

        .register-summary {
            font-size: 14px;
        }
    }

    .register-summary {
        color: #fff;
        font-size: 17px;
    }

    .register-content {
        margin-top: 76px;
        margin-bottom: 70px;

        .swiper-btns {
            margin-bottom: 20px;
            height: 40px;
            border-radius: 40px;
            background-color: #fff;

            ul {
                margin: 0;
                padding: 0;
                list-style-type: none;

                li {
                    line-height: 40px;
                    font-size: 17px;
                    z-index: 100;
                    cursor: pointer;

                    &.active {
                        color: #fff;
                        background-color: #58c6b3;
                        border-radius: 40px;
                    }
                }
            }

            .swiper-block {
                background-color: #58c6b3;
                height: 40px;
                border-radius: 40px;
                position: relative;
            }
        }

        .register-form {
            padding: 13px 92px 20px;
            background: -webkit-linear-gradient(left top, #58c6b3, #58c676);
            background: -o-linear-gradient(bottom right, #58c6b3, #58c676);
            background: -moz-linear-gradient(bottom right, #58c6b3, #58c676);
            background: linear-gradient(to bottom right, #58c6b3, #58c676);
            min-height: 400px;
            form {
                input,
                select {
                    padding-left: 0;
                    padding-right: 0;
                    height: 55px;
                    color: #fff;
                    font-size: 17px;
                    background-color: transparent;
                    border: 0;
                    border-bottom: 1px solid #fff;
                    border-radius: 0;
                    box-shadow: none;
                }
                // Firefox 4-18
                input:-moz-placeholder,
                textarea:-moz-placeholder {
                    color: #fff;
                    opacity: 1;
                }
                // Firefox 19+
                //::-moz-placeholder 伪元素在Firefox 19+替代了之前的 :-moz-placeholder 伪类.
                input::-moz-placeholder,
                textarea::-moz-placeholder {
                    color: #fff;
                    opacity: 1;
                }
                // Internet Explorer 10+
                // 经测试，现在这种写法在IE10+上设置没有反应，兼容性还有待探讨
                input:-ms-input-placeholder,
                textarea:-ms-input-placeholder {
                    color: #fff;
                }
                // Safari and Chrome
                // 必须加上元素标签，不然不生效
                input::-webkit-input-placeholder,
                textarea::-webkit-input-placeholder {
                    color: #fff;
                }

                .two-element {
                    margin-bottom: 15px;
                    border-bottom: 1px solid #fff;
                    height: 50px;

                    label {
                        padding-top: 15px;
                        padding-bottom: 10px;
                        padding-left: 0;
                        color: #fff;
                        font-size: 17px;
                    }

                    input {
                        border: 0;
                    }

                    .preview {
                        img {
                            width: 200px;
                        }
                    }

                    &.noborder {
                        border: 0 !important;

                        .col-sm-8 {
                            padding-top: 10px;
                        }
                    }
                }

                .preview-logo {
                    img {
                        width: 200px;
                        margin: 0 auto;
                        padding: 5px;
                    }
                }

                .send-code-input {
                    // background-color: $c1;
                    padding-bottom: 10px;
                    border-bottom: 1px solid #fff;

                    input {
                        border: 0;
                        width: 70%;
                    }

                    .send-code-btn {
                        margin-top: 10px;
                        color: $c1;
                        border: 0;
                        border-radius: 20px;

                        &:hover {
                            background-color: #fff;
                        }
                    }
                }

                .btn-link,
                .btn-link:hover {
                    margin-top: 20px;
                    margin-right: -11px;
                    opacity: 1;
                    color: #fff;
                    font-size: 18px;
                    text-decoration: none;
                }

                .pull-left.btn-link,
                .pull-left.btn-link:hover {
                    margin-left: -11px;
                }

                .pull-left.btn-link.two-btns,
                .pull-left.btn-link.two-btns:hover {
                    margin-left: 0;
                }

                .pull-right.btn-link.two-btns,
                .pull-right.btn-link.two-btns:hover {
                    margin-right: 0;
                }

                .checkbox-inline {
                    a {
                        color: #fff;
                        text-decoration: underline;
                    }

                    input {
                        height: 13px;
                    }
                }
            }
        }
        @media screen and (max-width: 768px) {
            .register-form {
                padding-left: 40px;
                padding-right: 40px;

                form {
                    .send-code-input {
                        input {
                            width: 55%;
                        }
                    }
                }
            }
        }

        .register-tip {
            margin-top: 55px;
            padding: 32px 18px;
            background-color: #fff;
            text-align: center;

            > span {
                font-size: 22px;
                font-weight: bold;
            }

            p {
                margin-top: 24px;
                margin-bottom: 43px;
                color: $c2;

                > span {
                    color: red;
                }
            }

            .btn-default:hover,
            > .btn-default {
                padding: 13px 14px;
                background-color: #fff;
                border: 1px solid $c1;
                border-radius: 40px;
                color: $c1;
                font-size: 17px;
            }
        }
    }
}
@media screen and (max-width: 768px) {
    .register {
        background-size: auto 20%;

        .preview {
            img {
                width: 60%;
                margin: 0 auto;
            }
        }
    }
}

.reservation-right {
    // 右侧页面下边的两个按钮
    .button-arrows {
        margin: 40px 0;

        .button-arrows-left {
            border: 1px solid $mt_c_main !important;
            color: $mt_c_main;
            background-color: $mt_c_default;
        }

        .button-arrows-right {
            border: 1px solid $mt_c_main !important;
            color: $mt_c_default;
            background-color: $mt_c_main;
        }
    }
    margin: 0 30px;

    .caret {
        width: 0;
        height: 0;
        border: 9px solid transparent;
        border-right: 9px solid #fff;
        position: relative;
        left: -50px;
    }

    form {
        .form-group {
            border-bottom: 1px solid $c5;
        }

        input,
        select {
            padding-left: 0;
            padding-right: 0;
            height: 55px;
            color: $c3;
            font-size: 17px;
            background-color: transparent;
            border: 0;
            border-radius: 0;
            box-shadow: none;
        }

        input:focus,
        select:focus {
            box-shadow: none;
        }

        .form-group input:focus,
        .form-group select:focus {
            border-bottom: 1px solid $c1;
        }

        .btn-link,
        .btn-link:hover {
            color: $c2;
            text-decoration: none;
            margin-bottom: 50px;
        }

        .btn-link.disabled,
        .btn-link.disabled:hover {
            color: $c5;
            text-decoration: none;
            margin-bottom: 50px;
        }
        // Firefox 4-18
        input:-moz-placeholder,
        textarea:-moz-placeholder {
            color: $c3;
            opacity: 1;
        }
        // Firefox 19+
        //::-moz-placeholder 伪元素在Firefox 19+替代了之前的 :-moz-placeholder 伪类.
        input::-moz-placeholder,
        textarea::-moz-placeholder {
            color: $c3;
            opacity: 1;
        }
        // Internet Explorer 10+
        // 经测试，现在这种写法在IE10+上设置没有反应，兼容性还有待探讨
        input:-ms-input-placeholder,
        textarea:-ms-input-placeholder {
            color: $c3;
        }
        // Safari and Chrome
        // 必须加上元素标签，不然不生效
        input::-webkit-input-placeholder,
        textarea::-webkit-input-placeholder {
            color: $c3;
        }

        input::-webkit-input-placeholder,
        textarea::-webkit-input-placeholder {
            color: $c3;
        }
    }
}

.servermodal {
    // margin-top: 150px;
    .search-input {
        border: 1px solid $c9;
        height: 50px;
    }

    .search-btn {
        background-color: $c1;
        color: #fff;
        padding: 15px 20px;
    }

    .table {
        margin-top: 10px;

        thead {
            th {
                vertical-align: inherit;
                text-align: center;
            }
        }

        tr {
            height: 50px;

            &:hover {
                td {
                    color: $c1;
                }
            }

            td {
                padding-top: 15px;
                text-align: center;
            }
        }
    }
}

.syj-page {
    li {
        cursor: pointer !important;

        a,
        span {
            padding: 9px 12px;
            height: 40px;

            &:hover {
                color: $c1;

                button {
                    background-color: #eeeeee;
                }
            }
        }

        .search-page {
            padding-top: 6px;

            input {
                width: 50px;
            }

            button {
                background-color: #fff;
                color: $c1;
            }
        }

        a {
            color: $c1;

            span {
                cursor: pointer;
            }
        }

        &:first-child > a {
            border-top-left-radius: 20px !important;
            border-bottom-left-radius: 20px !important;
        }

        &:last-child > a {
            border-top-right-radius: 20px !important;
            border-bottom-right-radius: 20px !important;
        }

        &.disabled {
            a,
            span {
                color: #ddd;

                &:hover {
                    color: #ddd;
                }
            }
        }
    }
}
// main按钮颜色样式
.mt_btn_main,
.mt_btn_main:active,
.mt_btn_main:focus,
.mt_btn_main:hover {
    color: $mt_c_default;
    background-color: $mt_c_main;
}
// 输入框input样式,底部有线的部分
.bottom_input,
.bottom_input:focus {
    border: 0;
    border-bottom: 1px solid #ccc;
    border-radius: 0;
    box-shadow: none;
    outline: 0;
    height: 50px;
    padding: 14px 0;
    line-height: 16px;
}
// 输入框的样式，全部边框
.mt_input,
.mt_input:focus {
    border: 1px solid $mt_c_border;
    box-shadow: none;
    outline: none;
    height: 50px;
    padding: 14px 10px;
    line-height: 16px;
    border-radius: 6px;
}

.mt_group_btn,
.mt_group_btn:active,
.mt_group_btn:focus,
.mt_group_btn:hover {
    height: 50px;
    background-color: $mt_c_main;
    color: $mt_c_default;
}
// 完整的main按钮设置
.mt_button_default,
.mt_button_default:active,
.mt_button_default:focus,
.mt_button_default:hover {
    color: $mt_c_second;
    border: 1px solid $mt_c_border !important;
    background-color: $mt_c_default;
    border-radius: 20px;
    padding: 3px 15px;
    box-shadow: none;
    outline: none;

    &.active {
        border: 0;
        background-color: $mt_c_main;
        color: $mt_c_default;
    }
}
// 一般的方形的按钮
.btn-mt-ok,
.btn-mt-ok.active,
.btn-mt-ok:active,
.btn-mt-ok:focus,
.btn-mt-ok:hover {
    color: $mt_c_default !important;
    background-color: $mt_c_main;
    padding: 7px 30px;
    border-radius: 6px;
}

// 需要上下添加padding
.need-padding {
    padding-top: 6px;
    padding-bottom: 6px;
}

.common-modal {
    .modal-dialog {}
    @media (min-width: 768px) {
        .modal-dialog {
            width: 30%;
            margin: 200px auto;
        }
    }

    .modal-content {
        border: 1px solid $mt_c_border;
    }

    .modal-footer,
    .modal-header {
        border-color: $mt_c_border;
    }

    .table {
        margin-top: 10px;

        thead {
            th {
                vertical-align: inherit;
                text-align: center;
            }
        }

        tr {
            height: 50px;

            &:hover {
                td {
                    color: $c1;
                }
            }

            td {
                padding-top: 15px;
                text-align: center;
            }
        }
    }
}


// 注册的前后切换的按钮
.btn-mt-register, .btn-mt-register:hover, .btn-mt-register:active, .btn-mt-register:focus {
    color: $mt_c_main;
    background-color: $mt_c_default;
    padding: 5px 20px;
}
